Generalized Selective XML Markup of Source Code Using Agile Parsing
نویسنده
چکیده
Increasingly focus in the software comprehension community is shifting from representing the results of analysis in the graph and database domain to reflecting insights directly into source. The obvious modern representation for this reflection is XML markup. In the simplest case, XML markup of the abstract syntax tree itself can be represented in source, although the result is wordy, overly detailed and cumbersome to deal with. A more realistic solution is to use island or multi-weight parsing to mark up the AST in only those sections of source of interest to the current task. In this paper we outline a method for extending and generalizing the partial markup idea to minimize source markup not only by marking only sections, but by selectively marking up the source with only a subset of the AST nodes relevant to each particular task as well. By exploiting agile parsing, this idea is further extended to allow for task-directed selective markup as a natural extension of selective syntactic markup.
منابع مشابه
Prospects of encoding Java source code in XML
Currently, the only standard format for representing Java source code is plain text-based. This paper explores the prospects of using Extensible Markup Language (XML) for this purpose. XML enables the leverage of tools and standards more powerful than those available for plain-text formats, while retaining broad accessibility. The paper outlines the potential benefits of future XML grammars tha...
متن کاملJavaML 2.0: Enriching the Markup Language for Java Source Code
Although the representation of source code in plain text format is convenient for manipulation by programmers, it is not an effective format for processing by software engineering tools at an abstraction level suitable for source code analysis, reverse-engineering, or refactoring. Textual source code files require language-specific parsing to uncover program structure, a task undertaken by all ...
متن کاملAutomatic Ontology Creation by Extracting Metadata from the Source code
Semantic Web can be created by developing Ontologies. For every new project Software companies are going for designing new code and components, by new developers. If the company archives the completed code and components, which can be used with no need for testing it unlike open source code and components. File metadata and file content metadata can be extracted from the Application files and f...
متن کاملA Compiler-Based Approach to Schema-Specific XML Parsing
The validation of XML instances against a schema is usually performed separately from the parsing of the more basic syntactic aspects of XML. We posit, however, that schema information can be used during parsing to improve performance, using what we call schema-specific parsing. This paper develops a framework for schema-specific parsing centered on an intermediate representation we call genera...
متن کاملSyntax Sensitive and Language Independent Detection of Code Clones
This paper proposes a new technique to detect code clones from the lexical and syntactic point of view, which is based on PALEX source code representation. The PALEX code contains the recorded parsing actions and also lexical formatting information including white spaces and comments. We can record a list of parsing actions (shift, reduce, and reading a token) during a compiling process after a...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2003